package com.sanjin.mall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.sanjin.mall.common.utils.PageUtils;
import com.sanjin.mall.product.entity.CategoryEntity;
import com.sanjin.mall.product.vo.Catelog2Vo;

import java.util.List;
import java.util.Map;

/**
 * 商品三级分类
 *
 * @author sanjin
 * @email 1032628545@qq.com
 * @date 2023-05-02 13:30:21
 */
public interface CategoryService extends IService<CategoryEntity> {


    List<CategoryEntity> getCategoryEntityTree();

    PageUtils queryPage(Map<String, Object> params);

    void removeMenuByIds(List<Long> catIds);

    Long[] getCatelogPath(Long cateId);

    //级联更新 cate和brand关联表
    void updateDetail(CategoryEntity category);

    List<CategoryEntity> getLevel_1();

    Map<String,List<Catelog2Vo>> getCatalogJson();
}

